﻿namespace Chain.Wechat
{
    using System;
    using System.Runtime.CompilerServices;
    using System.Xml;

    public class LinkRequest : IRequest
    {
        
        private string _Description;
        
        private string _MsgId;
        
        private string _Title;
        
        private string _Url;

        public LinkRequest(XmlDocument input) : base(input)
        {
            XmlNode root = base.XmlDoc.FirstChild;
            this.Title = root["Title"].InnerText;
            this.Description = root["Description"].InnerText;
            this.Url = root["Url"].InnerText;
            this.MsgId = root["MsgId"].InnerText;
        }

        public string Description
        {
            
            get
            {
                return this._Description;
            }
            
            set
            {
                this._Description = value;
            }
        }

        public string MsgId
        {
            
            get
            {
                return this._MsgId;
            }
            
            set
            {
                this._MsgId = value;
            }
        }

        public string Title
        {
            
            get
            {
                return this._Title;
            }
            
            set
            {
                this._Title = value;
            }
        }

        public string Url
        {
            
            get
            {
                return this._Url;
            }
            
            set
            {
                this._Url = value;
            }
        }
    }
}

